<%- include ../public/header.ejs%>

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-2">
            <%- include ../public/aslideleft.ejs%>
        </div>
        <div class="col-sm-10">
            <ol class="breadcrumb">
                <li class="active">商品管理
                </li>
                <li class="active">商品列表
                </li>
            </ol>
            <div class="panel panel-default">
                <div class="panel-heading">
                    编辑商品
                </div>
                <div class="panel-body">
                    <div class="table-responsive input-form">
                        <form action="/admin/product/doEdit" method="post" enctype="multipart/form-data">
                            <ul>
                                <input type="hidden" name="_id" value="<%=list._id%>">
                                <input type="hidden" name="pic" value="<%=list.pic%>">
                                <li> 商品名称: <input type="text" name="title" value="<%=list.title%>"/></li>
                                <li> 商品图片: <input type="file" name="pic" /><img src="/<%=list.pic%>" width=""></li>
                                <li> 商品价格: <input type="text" name="price"  value="<%=list.price%>"/></li>
                                <li> 商品邮费: <input type="text" name="fee"  value="<%=list.fee%>"/></li>
                                <li>
                                    商品描述:
                                    <textarea name="description" id="" cols="60" rows="8" value="<%=list.description%>"></textarea>
                                </li>
                                <li>
                                    <br />
                                    <button type="submit" class="btn btn-default">提交</button>
                                </li>
                            </ul>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

</body>

</html>